package com.ling.pl.autoproject.definition.component.model;

import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * 参照 Bootstrap 的 响应式设计，预设五个响应尺寸：xs sm md lg xl。
 * span	栅格占位格数，为 0 时相当于 display: none	number	-
 * order	栅格顺序，flex 布局模式下有效	number	0
 * offset	栅格左侧的间隔格数，间隔内不可以有栅格	number	0
 * push	栅格向右移动格数	number	0
 * pull    栅格向左移动格数
 */
@Embeddable
public class GridLayout {
    @Column(name = "XS_SPAM")
    @ModelProperty(comment = "xs栅格占位格数")
    Integer xsSpan;

    @Column(name = "XS_ORDER")
    @ModelProperty(comment = "xs栅格顺序")
    Integer xsOrder;

    @Column(name = "XS_OFFSET")
    @ModelProperty(comment = "xs栅格左侧的间隔格数")
    Integer xsOffset;

    @Column(name = "XS_PUSH")
    @ModelProperty(comment = "xs栅格向右移动格数")
    Integer xsPush;

    @Column(name = "XS_PULL")
    @ModelProperty(comment = "xs栅格向左移动格数")
    Integer xsPull;

    @Column(name = "SM_SPAN")
    @ModelProperty(comment = "sm栅格占位格数")
    Integer smSpan;

    @Column(name = "SM_ORDER")
    @ModelProperty(comment = "sm栅格顺序")
    Integer smOrder;

    @Column(name = "SM_OFFSET")
    @ModelProperty(comment = "sm栅格左侧的间隔格数")
    Integer smOffset;

    @Column(name = "SM_PUSH")
    @ModelProperty(comment = "sm栅格向右移动格数")
    Integer smPush;

    @Column(name = "SM_PULL")
    @ModelProperty(comment = "sm栅格向左移动格数")
    Integer smPull;

    @Column(name = "MD_SPAN")
    @ModelProperty(comment = "md栅格占位格数")
    Integer mdSpan;

    @Column(name = "MD_ORDER")
    @ModelProperty(comment = "md栅格顺序")
    Integer mdOrder;

    @Column(name = "MD_OFFSET")
    @ModelProperty(comment = "md栅格左侧的间隔格数")
    Integer mdOffset;

    @Column(name = "MD_PUSH")
    @ModelProperty(comment = "md栅格向右移动格数")
    Integer mdPush;

    @Column(name = "MD_PULL")
    @ModelProperty(comment = "md栅格向左移动格数")
    Integer mdPull;

    @Column(name = "LG_SPAN")
    @ModelProperty(comment = "lg栅格占位格数")
    Integer lgSpan;

    @Column(name = "LG_ORDER")
    @ModelProperty(comment = "lg栅格顺序")
    Integer lgOrder;

    @Column(name = "LG_OFFSET")
    @ModelProperty(comment = "lg栅格左侧的间隔格数")
    Integer lgOffset;

    @Column(name = "LG_PUSH")
    @ModelProperty(comment = "lg栅格向右移动格数")
    Integer lgPush;

    @Column(name = "LG_PULL")
    @ModelProperty(comment = "lg栅格向左移动格数")
    Integer lgPull;

    @Column(name = "XL_SPAN")
    @ModelProperty(comment = "xl栅格占位格数")
    Integer xlSpan;

    @Column(name = "XL_ORDER")
    @ModelProperty(comment = "xl栅格顺序")
    Integer xlOrder;

    @Column(name = "XL_OFFSET")
    @ModelProperty(comment = "xl栅格左侧的间隔格数")
    Integer xlOffset;

    @Column(name = "XL_PUSH")
    @ModelProperty(comment = "xl栅格向右移动格数")
    Integer xlPush;

    @Column(name = "XL_PULL")
    @ModelProperty(comment = "xl栅格向左移动格数")
    Integer xlPull;
}
